// 获取推荐歌单
$.get('http://192.168.5.120:8089/personalized?limit=6', res => {

	$.each(res.result, (index, item) => {

		var a = item.playCount / 10000
		var b;
		if (a < 1) {
			b = a
		} else if (a > 1) {
			b = a.toFixed(2) + '万'
		} else if (a > 10000000) {
			b = a.toFixed(2) / 100000000 + '亿'
		}
		// console.log(item);
		$('.playlist-box').append(`
					<div class="playlist">
					<a href="SonglistDetails.html?id=${item.id}">	<p class="top-right-text">${b}</p>
						<img src="${item.picUrl}" alt="" />
						<p class="playlist-bottom-text">${item.name}</p></a>
					</div>
			`)


	})

})